package com.wu.model;

import java.util.Date;

public class JournalModel {

    private  Integer id;
    private String title;
    private String content;
    private String username;
    private Date time;
    private String categoryname;
    private int hits;
    private int commentolume;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getCategoryname() {
        return categoryname;
    }

    public void setCategoryname(String categoryname) {
        this.categoryname = categoryname;
    }

    public int getHits() {
        return hits;
    }

    public void setHits(int hits) {
        this.hits = hits;
    }

    public int getCommentolume() {
        return commentolume;
    }

    public void setCommentolume(int commentolume) {
        this.commentolume = commentolume;
    }

    @Override
    public String toString() {
        return "JournalModel{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", author='" + username + '\'' +
                ", time=" + time +
                ", categoryname='" + categoryname + '\'' +
                ", hits=" + hits +
                ", commentolume=" + commentolume +
                '}';
    }

    public JournalModel() {

    }

    public JournalModel(Integer id, String title, String content, String username, Date time, String categoryname, int hits, int commentolume) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.username = username;
        this.time = time;
        this.categoryname = categoryname;
        this.hits = hits;
        this.commentolume = commentolume;
    }
}
